package com.netty.esc;

import com.fasterxml.jackson.databind.util.BeanUtil;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Handler;

/**
 * @Author: zhaoyang
 * @Data: 2022/5/30 18:26
 * @Description
 */
public class Methods {


    public synchronized void demo() throws InterruptedException {
        System.out.println("213213123");
        Thread.sleep(1000);
        String name = Thread.currentThread().getName();
        System.out.println("线程名称为：" + name);
    }

    public static void main(String[] args) {

        Map<String,String> map = new HashMap<>();
        Map<String,String> map1 = new HashMap<>();
        map.put("qwe","wqeqwe");
        BeanUtils.copyProperties(map,map1);
        System.out.println(map1);
    }
}
